
package com.jiuqi.irs.generator.form;

import java.text.ParseException;
import java.text.SimpleDateFormat;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

/**
 * Form for tbDetailproof.
 *
 * @author <a href="http://boss.bekk.no/boss/middlegen/"/>Middlegen</a>
 *
 * @struts.form name="tbDetailproofForm"
 */
public class TbReceiptForm extends ActionForm {

   private final static SimpleDateFormat FORMAT = new SimpleDateFormat("dd.MM.yyyy hh:mm:ss");

   private java.lang.String receiptGuid = null;
   
   private java.lang.String proofId = null;
   
   private java.lang.String orgGuid = null;
   
   private java.lang.String billNumber = null;
   
   private java.lang.String billNumber2 = null;

   private java.lang.String subCardNo = null;

   private java.lang.String itemCard = null;
   
   private java.math.BigDecimal cutSum = null;
   
   private java.lang.String paymentUnit = null;
   
   private java.lang.String paymentAccount = null;
   
   private java.math.BigDecimal hjSum = null;
   
   private java.math.BigDecimal gatherSum = null;
   
   private java.lang.String year = null;
   
   private java.lang.String receiptState = null;
   
   private java.lang.String receiptTime = null;
  
   private java.lang.String applyCreatTime = null;
   
   private java.lang.String applyLastTime = null;
   
   private java.lang.String reserved1 = null;
  
   private java.lang.String reserved2 = null;
  
   private java.lang.String reserved3 = null;
   /**
    * Standard constructor.
    */
   public TbReceiptForm() {
   }

  

  


public java.lang.String getProofId() {
	return proofId;
}






public void setProofId(java.lang.String proofId) {
	this.proofId = proofId;
}






public java.lang.String getBillNumber2() {
	return billNumber2;
}






public void setBillNumber2(java.lang.String billNumber2) {
	this.billNumber2 = billNumber2;
}






public java.math.BigDecimal getHjSum() {
	return hjSum;
}






public void setHjSum(java.math.BigDecimal hjSum) {
	this.hjSum = hjSum;
}






public java.lang.String getOrgGuid() {
	return orgGuid;
}






public void setOrgGuid(java.lang.String orgGuid) {
	this.orgGuid = orgGuid;
}






public java.lang.String getReceiptGuid() {
	return receiptGuid;
}






public void setReceiptGuid(java.lang.String receiptGuid) {
	this.receiptGuid = receiptGuid;
}






public java.lang.String getBillNumber() {
	return billNumber;
}






public void setBillNumber(java.lang.String billNumber) {
	this.billNumber = billNumber;
}






public java.lang.String getSubCardNo() {
	return subCardNo;
}






public void setSubCardNo(java.lang.String subCardNo) {
	this.subCardNo = subCardNo;
}






public java.lang.String getItemCard() {
	return itemCard;
}






public void setItemCard(java.lang.String itemCard) {
	this.itemCard = itemCard;
}






public java.math.BigDecimal getCutSum() {
	return cutSum;
}






public void setCutSum(java.math.BigDecimal cutSum) {
	this.cutSum = cutSum;
}






public java.lang.String getPaymentUnit() {
	return paymentUnit;
}






public void setPaymentUnit(java.lang.String paymentUnit) {
	this.paymentUnit = paymentUnit;
}






public java.lang.String getPaymentAccount() {
	return paymentAccount;
}






public void setPaymentAccount(java.lang.String paymentAccount) {
	this.paymentAccount = paymentAccount;
}






public java.math.BigDecimal getGatherSum() {
	return gatherSum;
}






public void setGatherSum(java.math.BigDecimal gatherSum) {
	this.gatherSum = gatherSum;
}






public java.lang.String getYear() {
	return year;
}






public void setYear(java.lang.String year) {
	this.year = year;
}






public java.lang.String getReceiptState() {
	return receiptState;
}






public void setReceiptState(java.lang.String receiptState) {
	this.receiptState = receiptState;
}






public java.lang.String getReceiptTime() {
	return receiptTime;
}






public void setReceiptTime(java.lang.String receiptTime) {
	this.receiptTime = receiptTime;
}






public java.lang.String getApplyCreatTime() {
	return applyCreatTime;
}






public void setApplyCreatTime(java.lang.String applyCreatTime) {
	this.applyCreatTime = applyCreatTime;
}






public java.lang.String getApplyLastTime() {
	return applyLastTime;
}






public void setApplyLastTime(java.lang.String applyLastTime) {
	this.applyLastTime = applyLastTime;
}






public java.lang.String getReserved1() {
	return reserved1;
}






public void setReserved1(java.lang.String reserved1) {
	this.reserved1 = reserved1;
}






public java.lang.String getReserved2() {
	return reserved2;
}






public void setReserved2(java.lang.String reserved2) {
	this.reserved2 = reserved2;
}






public java.lang.String getReserved3() {
	return reserved3;
}






public void setReserved3(java.lang.String reserved3) {
	this.reserved3 = reserved3;
}



/**
    * Validate the properties that have been set from this HTTP request,
    * and return an <code>ActionErrors</code> object that encapsulates any
    * validation errors that have been found.  If no errors are found, return
    * <code>null</code> or an <code>ActionErrors</code> object with no
    * recorded error messages.
    *
    * @param mapping The mapping used to select this instance
    * @param request The servlet request we are processing
    */
   public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
      ActionErrors errors = new ActionErrors();
      // test for nullity
      
      if(getReceiptGuid() == null) {
         errors.add("receiptGuid", new ActionError("error.infoGuid.required"));
      }
     
      // TODO test format/data
      return errors;
   }
}
